package com.nuoniu.sibanyun.service.work.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.nuoniu.sibanyun.entity.work.WorkReportUser;
import com.nuoniu.sibanyun.mapper.work.WorkReportUserMapper;
import com.nuoniu.sibanyun.service.work.IWorkReportUserService;
import io.swagger.models.auth.In;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author baiqiang
 * @since 2020-09-09
 */
@Service
public class WorkReportUserServiceImpl extends ServiceImpl<WorkReportUserMapper, WorkReportUser> implements IWorkReportUserService {

    @Override
    public List<WorkReportUser> getByOfficeId(Integer officeId, Integer workType) {
        return baseMapper.getByOfficeId(officeId, workType);
    }

    @Override
    public void deleteByOffice(Integer officeId, Integer workType) {
        baseMapper.deleteByOffice(officeId, workType);
    }

    @Override
    public WorkReportUser getDetail(Integer officeId, Integer type, Integer workType) {
        return baseMapper.getDetail(officeId, type, workType);
    }
}
